package com.ssy.lingxi.platform.template.service.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 页面模板商城类型 - enum
 * @author fhj
 * @date 2020/07/30
 * @version 2.0.0
 */
public enum PageTemplateShopTypeEnum {

    ENTERPRISE(1, "企业商城"),
    SCORE(2, "积分商城"),
    CHANNEL(3, "渠道商城"),
    CHANNEL_SELF(4, "渠道自有商城"),
    CHANNEL_SCORE(5, "渠道积分商城"),
    PURCHASE(6, "采购门户"),
    LOGISTICS(7, "物流服务门户"),
    PROCESS(8, "加工服务门户"),
    INFORMATION(9, "行情资讯");

    private final Integer code;

    PageTemplateShopTypeEnum(Integer code, String message) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(), this.code);
    }
}
